// main.ts
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";

import mitt from "mitt";

// const Mit = mitt()

type Events = {
  message: string;
  foo: string;
  bar?: number;
};
const Mit = mitt<Events>();

const app = createApp(App);
app.config.globalProperties.$Bus = Mit;
app.use(router);
app.mount("#app");
